<?php
class Application_Form_List extends Zend_Form
{
	public function init()
	{
		$this->setName('list');

		$id = new Zend_Form_Element_Hidden('id');
		$id->addFilter('Int');
		
		$name = new Zend_Form_Element_Text('name');
		$name->setLabel('Name')
			->setRequired(true);

		$ownerName = new Zend_Form_Element_Text('owner_name');
		$ownerName->setLabel('Owner Name')
			->setRequired(true);
		
		$ownerEmail = new Zend_Form_Element_Text('owner_email');
		$ownerEmail->setLabel("Owner Email")
			->setRequired(true);
		
		$replyEmail = new Zend_Form_Element_Text('reply_email');
		$replyEmail->setLabel("Reply Email")
			->setRequired(true);
		
		$token = new Zend_Form_Element_Hidden('token');
		$token->setRequired(true)->addValidator('NotEmpty');
		
		$submit = new Zend_Form_Element_Submit('submit');
		$submit->setAttrib('id', 'submitbutton')->setLabel('Submit');

		$this->addElements(array($id, $name,$ownerName,
				 $ownerEmail,$replyEmail, $submit,$token));
	}
	
	
}